package com.ostrich.cloud.ostrichUserService.common;

import com.ostrich.cloud.common.resultcode.ResultCode;

public enum CustomerResultCode implements ResultCode {

    PASSWORD_EXCEPTION(1001, "账号密码错误"),
    CANCEL_EXCEPTION(1002,"用户已经被注销"),
    NOTHING_LOCATION_EXCEPTION(1003,"没有收获地址"),
    USERNAME_COPY_EXCEPTION(1004,"用户名字重复"),
    NEIGHBORHOOD_NO_BUSINESSMAN(1005,"你周围附近没有商户");

    private int code;
    private String message;

    private CustomerResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
